//
//  Macro.h
//  NewProject
//
//  Created by admin on 2017/6/13.
//  Copyright © 2017年 李航飞. All rights reserved.
//

#ifndef Macro_h
#define Macro_h

#define kScrenWidth  [UIScreen mainScreen].bounds.size.width/375
#define kScrenHidth  [UIScreen mainScreen].bounds.size.height/667

#define WIDTH_6_SCALE 375.0 * [UIScreen mainScreen].bounds.size.width

#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HIGHT [UIScreen mainScreen].bounds.size.height

#define SF(...) [NSString stringWithFormat:__VA_ARGS__]

//主题颜色
#define ALL_COLOR [UIColor colorWithRed:255/255.0 green:214/255.0 blue:1/255.0 alpha:1]
//线  灰色 245
#define LINE_COLOE_245 [UIColor colorWithRed:245/255.0 green:245/255.0 blue:245/255.0 alpha:1]
// 灰色  251
#define LINE_COLOE_251 [UIColor colorWithRed:251/255.0 green:251/255.0 blue:251/255.0 alpha:1]
// 灰色  251
#define LINE_COLOE_223 [UIColor colorWithRed:223/255.0 green:223/255.0 blue:223/255.0 alpha:1]
//标题
#define BIAOTI_COLOR [UIColor colorWithRed:39/255.0 green:39/255.0 blue:39/255.0 alpha:1]
//输入字段   灰色
#define INPUT_COLOR [UIColor colorWithRed:201/255.0 green:200/255.0 blue:200/255.0 alpha:1]
//按钮文字
#define BTN_TITLE_COLOR [UIColor colorWithRed:21/255.0 green:21/255.0 blue:21/255.0 alpha:1]
//浅灰色
#define MIN_GRAY [UIColor colorWithRed:244/255.0 green:244/255.0 blue:244/255.0 alpha:1]
//分栏灰色
#define FEN_LAN_GRAY [UIColor colorWithRed:250/255.0 green:250/255.0 blue:250/255.0 alpha:1]
//精选橙色
#define ORANGE_COLOR [UIColor colorWithRed:255/255.0 green:216/255.0 blue:0/255.0 alpha:1]
//RGB
#define RGB0X(rgbValue)     [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
//字号
#define FONT(size) [UIFont systemFontOfSize:size*kScrenHidth]
//网址
#define HOSTURL @"http://www.lnwuyou.com/sc/index.php?"
#define IMAGEURL @"http://www.lnwuyou.com"
#define checkStringNull(Str) (Str) == [NSNull null] || (Str) == nil ? @"" : [NSString stringWithFormat:@"%@", (Str)]
#endif /* Macro_h */
